package com.yellow.trackingservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("historical_data")
public class HistoricalData {

    @TableId(value = "history_id", type = IdType.AUTO)
    private Integer historyId;

    @TableField("order_id")
    private Integer orderId;

    @TableField("delivery_record")
    private String deliveryRecord;

    @TableField("record_date")
    private LocalDateTime recordDate;
}
